{% extends "learning_logs/base.html" %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ topic.text }}</title>
</head>
<body>
    {% block content %}
        <h1>{{ topic.text }}</h1>
        <ul>
            {% for entry in entries %}
            <li>
                <p>{{ entry.date_added|date:'M d, Y H:i' }}</p>
                <p>{{ entry.text|linebreaks }}</p>
            </li>
            {% empty %}
            <li>No entries have been added yet.</li>
            {% endfor %}
        </ul>
    {% endblock content %}
</body>
</html>